import React, { Component } from "react";
import { renderRoutes } from "react-router-config";
import { NavLink } from "react-router-dom";
import routes from "../routes";

class App extends Component {
  render() {
    return (
      <div>
        <ul>
          <li>
            <NavLink to="/home">home</NavLink>
          </li>
          <li>
            <NavLink to="/about">about</NavLink>
          </li>
        </ul>

        {renderRoutes(routes)}
      </div>
    );
  }
}

export default App;
